﻿using Architecture.CrossCutting.LoggingEntities.Models;
using System;
using System.Collections.Generic;
using System.Data.Entity.ModelConfiguration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.CrossCutting.LoggingEntities.Mapping
{
    public class ServiceDetailMap : EntityTypeConfiguration<ServiceDetail>
    {
        public ServiceDetailMap()
        {
            //Primary Key
            this.HasKey(s => s.ServiceName);

            this.HasMany(s => s.logs);
            this.ToTable("ServiceDetail", "dbo");
        }
    }
}
